<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        *{
            padding: 0px;
            margin: 0px;
        }
        .nav {
            height: 40px;
            line-height: 40px;
            border-top-width: 3px;
            border-top-style: solid;
            border-top-color: orangered;
            border-bottom-width: 1px;
            border-bottom-style: solid;
            border-bottom-color: #edeef0;
        }
        .nav a{
            display: inline-block;
            height: 40px;
            padding: 0 14px;
            font-size: 14px;
            color:grey;
            text-decoration: none;
        }
        .nav a:hover{
            background-color: rgb(175, 175, 175);
        }
    </style>
</head>

<body>
    <div class="nav">
        <a href="#">导航1</a>
        <a href="#">导航2</a>
        <a href="#">导航3</a>
        <a href="#">导航四字</a>
        <a href="#">导航五个字</a>
        <a href="#">这有六个字吗</a>
    </div>
</body>

</html>